﻿using System;

namespace paiban
{
    using ExcelConfig;
    using ExcelConfig.StoreAPI;
    using paiban.data;
    internal class Program
    {
        static int Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            ConfigStoreHelper.EnterConfigStoreAPIConfig();
            ExcelConfigHelper.Enter("配置域");
            ExcelConfigHelper.Enter("日期", true);

            var banbiao = new WorkPersonInfo(AppConfig.Text("日期"));
            //var d001 = new D001(banbiao);
            //d001.SaveExcel("sss2");
            var calc = new PaibanCalc(banbiao);
            calc.Calc();
            calc.SaveExcel("sss");
            Console.WriteLine($"calc {calc.calc_times}");
            Console.WriteLine(calc.success ? "Success" : "Fail");
            return 0;
        }



    }
}
